package com.shop.wk.config.custom;

import java.security.Principal;
import java.util.Map;
import org.springframework.http.ResponseEntity;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
import org.springframework.security.oauth2.provider.endpoint.TokenEndpoint;
import org.springframework.web.HttpRequestMethodNotSupportedException;

/**
 * @author 日月星辰
 * @date 2020/12/25 23:34
 * @description
 */
public class CustomTokenEndpoint extends TokenEndpoint {

	@Override
	public ResponseEntity<OAuth2AccessToken> postAccessToken(Principal principal, Map<String, String> parameters)
			throws HttpRequestMethodNotSupportedException {
		ResponseEntity responseEntity = super.postAccessToken(principal, parameters);

		return responseEntity;
	}

}
